Package com.cisco.pt.ipc.sim
Interface HTTPClient
- All Known Subinterfaces:
HTTPBackgroundClient
- All Known Implementing Classes:
HTTPBackgroundClientImpl,HTTPClientImpl
Information provided by the PKI file:
\class HttpClient
\brief HttpClient handles and manipulates the HTTP client on devices.
\example network().getDevice("PC0").getProcess("HttpClient")
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:booleanhttp_delete(String url, String body, String header) booleanbooleanbooleanbooleanisHttps()Information provided by the PKI file:voidsetHttps(boolean status) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Method Details
-
go
Information provided by the PKI file:
\brief Creates an HTTP request to the specified URL. \param url, the URL of the destination. \return bool, true if successful, otherwise false.- Parameters:
url- Takes in a parameter of url- Returns:
- boolean Returns a boolean
-
http_get
- Parameters:
url- Takes in a parameter of urlheader- Takes in a parameter of header- Returns:
- boolean Returns a boolean
-
http_post
- Parameters:
url- Takes in a parameter of urlbody- Takes in a parameter of bodyheader- Takes in a parameter of header- Returns:
- boolean Returns a boolean
-
http_delete
- Parameters:
url- Takes in a parameter of urlbody- Takes in a parameter of bodyheader- Takes in a parameter of header- Returns:
- boolean Returns a boolean
-
http_put
- Parameters:
url- Takes in a parameter of urlbody- Takes in a parameter of bodyheader- Takes in a parameter of header- Returns:
- boolean Returns a boolean
-
cancel
boolean cancel()Information provided by the PKI file:
\brief cancel HTTP request and close tcp connection. \return bool, true if successful, otherwise false.- Returns:
- boolean Returns a boolean
-
getLastPageContent
String getLastPageContent()Information provided by the PKI file:
\brief Returns the last page content retrived from an HTTP response. \return string, the last page content retrived from an HTTP response.- Returns:
- String Returns a String
-
setHttps
void setHttps(boolean status) Information provided by the PKI file:
\brief Sets the HttpClient process to use HTTPS if status is true, otherwise HTTP. \param status, true if HTTPS, false if HTTP.- Parameters:
status- Takes in a parameter of status
-
isHttps
boolean isHttps()Information provided by the PKI file:
\brief Returns true if the HttpClient process is set to HTTPS, false if HTTP. \return bool, true if the HttpClient process is set to HTTPS, false if HTTP.- Returns:
- boolean Returns a boolean
-